//
// Created by Administrator on 2023/10/30.
//

#include <iostream>
using namespace std;

void printArr(int *pa, int cur, int len)
{
    if(cur>len-1)
        return;
    cout<<pa[cur];
    printArr(pa,cur+1,len);
}

int main()
{
    int a[]={1,2,3,4,5,6,7,8};
    int len = sizeof a / sizeof (int);
    printArr(a,0,len);
    return 0;
}